package site.zhangzhuo.learn_springboot.spi;

import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;

class MyApplicationContextInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {
    @Override
    public void initialize(ConfigurableApplicationContext applicationContext) {
        System.out.println("----------MyApplicationContextInitializer---------------");
		/*
		Map<String, Object> systemProperties = applicationContext.getEnvironment().getSystemProperties();
		System.out.println("---------------start------------------");
		systemProperties.forEach((key,value)->{
			System.out.println("key:"+key+",value:"+value);
		}); System.out.println("---------------end------------------");
		*/
    }
}
